import { WeaTools } from 'ecCom';
export const newUrl = '/api/qiyuesuo/'
// export const CallAPI = (url, method, params) => {
//     return new Promise((resolve, reject) => {
//         WeaTools.callApi(url, method, params).then(({ noRight, ...data }) => {
//             if (noRight) {
//                 resolve({ noRight, ...data } as any)
//             } else {
//                 resolve(data as any)
//             }
//         })
//     })
// }


export const createContract = (params) => {
    return WeaTools.callApi(`${newUrl}fileSign/createContract`, "POST", params);
}
export const getCompanys = (params) => {
    return WeaTools.callApi(`${newUrl}fileSign/getCompanys`, "POST", params);
}

export const getServers = (params) => {
    return WeaTools.callApi(`${newUrl}fileSign/getServers`, "POST", params);
}



